package dr.incomeapp.view;

import java.util.LinkedList;
import java.util.List;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

public class GridViewAdapter extends BaseAdapter {

	protected List<GridItem> listGridItem = new LinkedList<GridItem>();
	protected Context m_context;

	public GridViewAdapter(Context c) {
		m_context = c;
	}

	public void addItem(GridItem gi) {
		listGridItem.add(gi);
	}

	public int getCount() {
		// TODO Auto-generated method stub

		return listGridItem.size();
	}

	public Object getItem(int arg0) {
		// TODO Auto-generated method stub
		return null;
	}

	public long getItemId(int arg0) {
		// TODO Auto-generated method stub
		return 0;
	}

	public View getView(int position, View convertView, ViewGroup arg2) {

		GridItem gi = listGridItem.get(position);

		return gi;
	}

}
